import React from "react";
import userPng from "@/assets/images/user_placeholder.png";
import cls from "@/styles/components/Avatar.module.scss";
import cn from "classnames";

type Props = {
  src?: string;
  isBig?: boolean;
};
export const Avatar = ({ src, isBig }: Props) => {
  return (
    <div className={cn(cls.root, { [cls.big]: isBig })}>
      <img src={src ?? userPng} alt="user_avatar" />
    </div>
  );
};
